/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.winexpress

/**
 *
 * @author Swee Zhi
 */
class Staff {
    int id
    
    String username
    String password
    Date lastLogin
    boolean activationStatus
    
    String lastName
    String firstName
    String department
    
    String email
    
//    String countryId
    static hasOne = [country:Country]
        
    static constraints = {
        id(blank:false, unique:true)
        username(blank:false, unique:true)
        password(blank:false)
        lastLogin(blank:true)
    }
}

